// toy01.cpp : Defines the entry point for the console application.
//

//#include "stdafx.h"
#include <vector>

//int vectorSum (std::vector<int> & vector);

int vectorSum(std::vector<int> &vector){
	int sum = 0;
	for (unsigned int i=0;i<vector.size();i++)
		sum = sum + vector[i];
	return sum;
}


int main(int argc, char* argv[])
{
	std::vector<int> myVector;
	for (unsigned int i=0;i<4355678;i++)
		myVector.push_back(i);

	int sum = vectorSum(myVector);
	return sum;
}



